package com.wollo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AjaxResult {
    private int code;
    private String msg;
    private Object data;
    public static AjaxResult ok() {
        return new AjaxResult(200,"",null);
    }
    public static AjaxResult ok(Object data) {
        return new AjaxResult(200,"",data);
    }

    public static AjaxResult error() {
        return new AjaxResult(400,"",null);
    }
}
